﻿/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

CKEDITOR.editorConfig = function( config )
{
	// Define changes to default configuration here. For example:
	// config.language = 'fr';
	// config.uiColor = '#AADC6E';
	config.skin = 'v2';
	config.language = 'zh-cn';
	config.font_names = '宋体/宋体;黑体/黑体;仿宋/仿宋_GB2312;楷体/楷体_GB2312;隶书/隶书;幼圆/幼圆;'+ config.font_names ; 
	config.toolbar = 'basic'; //基本工具条
	//基本工具条
	config.toolbar_basic =
	[
		['Source','-','Bold','Italic','Underline','Strike','-','NumberedList','BulletedList','-','TextColor','BGColor','-','Undo','Redo','RemoveFormat','-','Maximize']
	];
	config.toolbar = 'full';
	config.toolbar_full = 
	[
		['Source','-','Templates','Cut','Copy','Paste','PasteText','PasteFromWord','-','SpellChecker', 'Scayt','Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
		['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
		['TextColor','BGColor','NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
		['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
		['Link','Unlink','Anchor'],
		['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak','Maximize'],
		['Styles','Format','Font','FontSize']
	];
	//工具栏是否可以被收缩
	config.toolbarCanCollapse = true;
	//工具栏默认是否展开
	config.toolbarStartupExpanded = true;
	//工具栏的位置
    config.toolbarLocation = 'top';//可选：bottom
	// 取消 “拖拽以改变尺寸”功能 plugins/resize/plugin.js
    config.resize_enabled = false; 

	config.filebrowserBrowseUrl ='editor/CKFinder/ckfinder.html';//启用浏览功能
	config.filebrowserImageBrowseUrl = 'editor/CKFinder/ckfinder.html?Type=Images';
	config.filebrowserFlashBrowseUrl = 'editor/CKFinder/ckfinder.html?Type=Flash';
	config.filebrowserUploadUrl = 'editor/CKFinder/core/connector/php/connector.php?command=QuickUpload&type=Files';
	config.filebrowserImageUploadUrl = 'editor/CKFinder/core/connector/php/connector.php?command=QuickUpload&type=Images';
	config.filebrowserFlashUploadUrl = 'editor/CKFinder/core/connector/php/connector.php?command=QuickUpload&type=Flash';
	config.filebrowserWindowWidth = '1000';
	config.filebrowserWindowHeight = '700'
};
